@ECHO OFF

SETLOCAL


REM 添加字典服务的实现
REM 没有添加Class-Path和Main-Class时的运行方式
REM set JAVA_OPTS=
REM set JAVA_OPTS=-Djava.ext.dirs=.;dictionary-client-1.0.0.jar;dictionary-service-1.0.0.jar;general-dictionary-1.0.0.jar;extended-dictionary-1.0.0.jar
REM set MAIN_CLASS=cn.com.chengq.dictionary.client.DictionaryClient
REM java %JAVA_OPTS% %MAIN_CLASS% book editor xml REST

REM 添加字典服务的实现
REM 添加Class-Path和Main-Class时的运行方式


REM set JAVA_OPTS=
REM java %JAVA_OPTS% -jar dictionary-client-1.0.0.jar book editor xml REST

ECHO -----------------------------------------------------------------

REM set JAVA_OPTS=-Djava.ext.dirs=.
REM set MAIN_CLASS=cn.com.chengq.dictionary.client.DictionaryClient
REM java %JAVA_OPTS% %MAIN_CLASS% book editor xml REST
ECHO -----------------------------------------------------------------

REM set JAVA_OPTS=-cp .\general-dictionary-1.0.0.jar;.\extended-dictionary-1.0.0.jar;.\dictionary-client-1.0.0.jar
REM set MAIN_CLASS=cn.com.chengq.dictionary.client.DictionaryClient
REM java %JAVA_OPTS% %MAIN_CLASS% book editor xml REST
ECHO -----------------------------------------------------------------

set JAVA_OPTS=-Djava.ext.dirs=lib/ext
java %JAVA_OPTS% -jar dictionary-client-1.0.0.jar book editor xml REST
ECHO -----------------------------------------------------------------

ENDLOCAL

pause
